package com.bw.wxy.mvp.base.prsenter;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

//IPresenter下的方法与activity或fragment的生命周期绑定
public interface IPresenter extends LifecycleObserver {

    @OnLifecycleEvent(value = Lifecycle.Event.ON_DESTROY)
    void onDestroy();
}